package com.fary.controller;

import com.fary.po.Man;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping
@Controller
public class ConverterController {

    @RequestMapping("/hello")
    @ResponseBody
    public Object hello(@RequestParam("name") Man person){
        System.out.println(person);
        return person.toString();
    }
}
